<% layout('layout') -%>
<div class="page-header">
  <div class="page-title">
    <h2>投标记录</h2>
    <span>查看提交的报价详情与关键时间节点</span>
  </div>
</div>

<div class="table-wrapper">
  <table class="table">
    <thead>
      <tr>
        <th>招标编号</th>
        <th>药品名称</th>
        <th>投标总金额</th>
        <th>产品批号</th>
        <th>生产日期</th>
        <th>有效期</th>
        <th>保证金缴款日期</th>
        <th>提交时间</th>
      </tr>
    </thead>
    <tbody>
      <% bids.forEach(b => { %>
        <tr>
          <td><span class="tag"><%= b.tender_code || '-' %></span></td>
          <td><strong><%= b.drug_name || '-' %></strong></td>
          <td>¥ <%= Number(b.total_amount).toFixed(2) %></td>
          <td><%= b.product_batch || '—' %></td>
          <td><%= b.production_date || '—' %></td>
          <td><%= b.expiry_date || '—' %></td>
          <td><%= b.deposit_paid_date || '—' %></td>
          <td><%= b.created_at || '—' %></td>
        </tr>
      <% }) %>
    </tbody>
  </table>
</div>


